import javax.swing.plaf.synth.SynthOptionPaneUI;

public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.addIndex(0,9999);
        mySingleList.addLast(12);
        mySingleList.addLast(23);
        mySingleList.addLast(34);
        mySingleList.addLast(45);
        mySingleList.addIndex(3,199999);
        mySingleList.display();
    }
    public static void main02(String[] args) {
        MySingleList mySingleList = new MySingleList();
        //头插
        System.out.println("头插:");
        mySingleList.addFirst(12);
        mySingleList.addFirst(23);
        mySingleList.addFirst(34);
        mySingleList.display();
        System.out.println("尾插:");
        mySingleList.addLast(99);
        mySingleList.display();
    }
    public static void main01(String[] args) {
        MySingleList mySingleList = new MySingleList();
//        mySingleList.createList();
        mySingleList.addFirst(1);
        mySingleList.addFirst(2);
        mySingleList.addFirst(3);
        mySingleList.addFirst(4);
        System.out.println("=====");
        mySingleList.display();
        System.out.println("=====");
        System.out.println(mySingleList.size());
        System.out.println(mySingleList.contains(12));
    }
}
